package com.service;

import com.domain.Permission;
import com.domain.Role;

import java.util.List;

/**
 * 项目名称：ssm21
 * 类 名 称：IRoleService
 * 类 描 述：TODO
 * 创建时间：2020-01-19 20:29
 * 创 建 人：jacksonmike
 */
public interface IRoleService {
    public List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    Role findById(String roleId) throws  Exception;

    List<Permission> findOtherPermissions(String roleId) throws Exception;

    void addPermissionToRole(String[] permissionIds, String roleId);
}
